package com.depthsdata.coe.service;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-12-27 11:41:51
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class BusinessProcessDiagramBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.depthsdata.coe.dao.BusinessProcessDiagram businessProcessDiagram;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(businessProcessDiagram);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.depthsdata.coe.dao.IBusinessProcessDiagramDAO.Id);
		
																		
				
																
		mappedDaoFields.put("businessProcessId",com.depthsdata.coe.dao.IBusinessProcessDiagramDAO.BusinessProcessId);
		
														
				
																				
		mappedDaoFields.put("businessProcessDiagram",com.depthsdata.coe.dao.IBusinessProcessDiagramDAO.BusinessProcessDiagram);
		
										
				
																								
		mappedDaoFields.put("updateTime",com.depthsdata.coe.dao.IBusinessProcessDiagramDAO.UpdateTime);
		
						
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public BusinessProcessDiagramBean() {
		super();
	    		
		this.businessProcessDiagram = new com.depthsdata.coe.dao.BusinessProcessDiagram();
                
	}
	
		
	public BusinessProcessDiagramBean(com.depthsdata.coe.dao.BusinessProcessDiagram businessProcessDiagram) {
		super();
	
		this.businessProcessDiagram = businessProcessDiagram;
		
	}
		
		
		
    	
	public com.depthsdata.coe.dao.BusinessProcessDiagram convertToBusinessProcessDiagram(){
		return this.businessProcessDiagram;
	}
	
	public com.depthsdata.coe.dao.BusinessProcessDiagram convertTo(){
		return this.businessProcessDiagram;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.businessProcessDiagram.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.businessProcessDiagram.setId(id);
	}
		
									
		
		
					
			
		
	/**
	 * Get businessProcessId
	 * 
	 * @return long
	 */
	public long getBusinessProcessId(){
		return (long) this.businessProcessDiagram.getBusinessProcessId();
	}
	
	/**
	 * Set businessProcessId
	 * 
	 * @parameter long
	 */
	public void setBusinessProcessId(long businessProcessId){
		
		this.businessProcessDiagram.setBusinessProcessId(businessProcessId);
	}
		
							
		
		
							
			
		
	/**
	 * Get businessProcessDiagram
	 * 
	 * @return String
	 */
	public String getBusinessProcessDiagram(){
		return (String) this.businessProcessDiagram.getBusinessProcessDiagram();
	}
	
	/**
	 * Set businessProcessDiagram
	 * 
	 * @parameter String
	 */
	public void setBusinessProcessDiagram(String businessProcessDiagram){
		
		this.businessProcessDiagram.setBusinessProcessDiagram(businessProcessDiagram);
	}
		
					
		
		
									
			
		
	/**
	 * Get updateTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getUpdateTime(){
		return (java.util.Date) this.businessProcessDiagram.getUpdateTime();
	}
	
	/**
	 * Set updateTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setUpdateTime(java.util.Date updateTime){
		
		this.businessProcessDiagram.setUpdateTime(updateTime);
	}
		
			
		
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof BusinessProcessDiagramBean) == false) {
            return false;
        } // end if

        BusinessProcessDiagramBean other = (BusinessProcessDiagramBean) obj;
        
        boolean isEqual = false;
        
                
        com.depthsdata.coe.dao.BusinessProcessDiagram tempBusinessProcessDiagram = other.convertToBusinessProcessDiagram();
        
        if(tempBusinessProcessDiagram == null || this.businessProcessDiagram == null){
        	isEqual = false;
        }
        else if(tempBusinessProcessDiagram == this.businessProcessDiagram || tempBusinessProcessDiagram.equals(this.businessProcessDiagram) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static BusinessProcessDiagramBean[] toArray(com.depthsdata.coe.dao.BusinessProcessDiagram[] aBusinessProcessDiagrams){
		
		return toArray(aBusinessProcessDiagrams,null);
	}
	
	public static BusinessProcessDiagramBean[] toArray(com.depthsdata.coe.dao.BusinessProcessDiagram[] aBusinessProcessDiagrams , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aBusinessProcessDiagrams)){
		 	return new BusinessProcessDiagramBean[0];
		 }
		 
		 int length = aBusinessProcessDiagrams.length;
		 
		 BusinessProcessDiagramBean[] beans = new BusinessProcessDiagramBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new BusinessProcessDiagramBean(aBusinessProcessDiagrams[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aBusinessProcessDiagrams[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}